package com.sdvdxl.oauth;

import com.sdvdxl.constants.BaiduAppConstant;

public class ImplicitGrant {
	private String accessToken;
	
	public ImplicitGrant() {
		
	}
	
	public String getAccessToken() {
		return accessToken;
	}

	public void setAccessToken(String accessToken) {
		this.accessToken = accessToken;
	}

	public String firstGrantURL() {
		String url = "http://openapi.baidu.com/oauth/2.0/authorize?" +
				"response_type=token&client_id=" + BaiduAppConstant.CLIENTID + 
				"&redirect_uri=" + BaiduAppConstant.REDIRECTURI;
		return url;
	}
	
	public String firstResultURL() {
		String url = "";
		return url;
	}
}
